<template>
  <el-form :inline="true" :model="searchForm" style="float: left">
			<el-form-item label="名称">
				<el-input v-model="searchForm.userName" placeholder="名称"></el-input>
			</el-form-item>
			<el-form-item>
				<el-button type="primary" @click="onSearch">查询</el-button>
			</el-form-item>
		</el-form>
</template>
<script>
  export default {
    methods: {
      onSearch() {
        this.$emit('search', this.searchForm);
      }
    },

    data() {
      return {
        searchForm: {
          userName: '',
        }
      }
    },
  }
</script>